package com.central.task.service;

import com.central.task.model.TaskDefined;
import com.central.task.model.TaskDefinedLog;
import com.central.common.model.PageResult;
import com.central.common.model.Result;
import com.central.common.model.SysUser;
import com.central.common.service.ISuperService;

import java.util.List;
import java.util.Map;

/**
 * @author Tindy
 * @date 2021/11/29
 * @describe
 */
public interface ITaskDefinedService extends ISuperService<TaskDefined> {
    Result saveOrUpdateTask(SysUser user, TaskDefined taskDefined);

    PageResult<TaskDefined> findTasks(Long proId, Map<String, Object> params);

    Result delTask(SysUser user,Long taskId);

    List<String> getOwners(Long taskDefinedId);

    Result saveTaskLog(TaskDefinedLog taskDefinedLog);

    List<TaskDefinedLog> findTaskLogs(Long taskDefinedId);

    Result release(TaskDefinedLog taskDefinedLog);

    TaskDefinedLog getTaskLog(Long taskDefinedLogId);

    Result tmpRunTask(TaskDefinedLog taskDefinedLog);

    Result delTaskLog(SysUser user, Long taskLogId);
}